package bpm.dao.impl.proposal;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.proposal.ProposalEntry;

public class ProposalEntrysMapper implements RowMapper {
	
	public Object mapRow(ResultSet rs, int i) throws SQLException {
		
		ProposalEntry pe = new ProposalEntry();
		pe.setId(rs.getString("ID"));
		pe.setProposalId(rs.getString("PROPOSAL_ID"));
		pe.setFieldKey(rs.getString("PROPOSAL_FIELD_KEY"));
		pe.setValue(rs.getString("ROPOSAL_VALUE"));
		pe.setCreateTime(rs.getDate("CREATE_TIME"));
		pe.setLastUpdateTime(rs.getDate("LAST_UPDATE_TIME"));
		pe.setDescription(rs.getString("DESCRIPTION"));
		return pe;
	}
}
